package ${packageName}.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import ${packageName}.entity.${table.entityName};
import com.keta.foundation.util.dwz.Page;

public interface ${table.entityName}Service {

	${table.entityName} get(${table.pk.javaType} ${table.pk.fieldName});
	
	long get${table.entityName}Count();

	void saveOrUpdate(${table.entityName} ${table.instanceName});

	List<${table.entityName}> getAll();

	List<${table.entityName}> getAll(Page page);

	List<${table.entityName}> getAll(Specification<${table.entityName}> specification, Page page);

	void delete(${table.pk.javaType} ${table.pk.fieldName});
	
	void delete(${table.entityName} ${table.instanceName});
}
